<?php
  $conn = mysqli_connect("localhost","root","","company");
  if($conn-> connect_error){
      die("Connection failed:".$conn-> connect_erron);
  }

  $sql = "SELFCT id, username, password from login";
  $result = $conn-> query($sql);

  if($result-> num_rows > 0){
      while($row = $result-> fetch_assoc()){
          echo "<tr><td>".$row["id"]."</td><td>".$row["username"]."</td><td>".$row[
              "password"]."</td><td>";
      }
      echo "</table>"
  }
  else{
      echo "0 result";
  }

  $conn-> close();
?>